package com.ruoyi.coal.modules.coalpile.domain.vo;

import java.util.Arrays;

public class schemeVo {
    private double ton;

    private Integer number;

    private Integer[] coalFieldId;

    private double value;

    public void setTon(double ton) {
        this.ton = ton;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public void setCoalFieldId(Integer[] coalFieldId) {
        this.coalFieldId = coalFieldId;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.vo.schemeVo))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.vo.schemeVo other = (com.ruoyi.coal.modules.coalpile.domain.vo.schemeVo)o;
        if (!other.canEqual(this))
            return false;
        if (Double.compare(getTon(), other.getTon()) != 0)
            return false;
        Object this$number = getNumber(), other$number = other.getNumber();
        return ((this$number == null) ? (other$number != null) : !this$number.equals(other$number)) ? false : (!Arrays.deepEquals((Object[])getCoalFieldId(), (Object[])other.getCoalFieldId()) ? false : (!(Double.compare(getValue(), other.getValue()) != 0)));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.vo.schemeVo;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        long $ton = Double.doubleToLongBits(getTon());
        result = result * 59 + (int)($ton >>> 32L ^ $ton);
        Object $number = getNumber();
        result = result * 59 + (($number == null) ? 43 : $number.hashCode());
        result = result * 59 + Arrays.deepHashCode((Object[])getCoalFieldId());
        long $value = Double.doubleToLongBits(getValue());
        return result * 59 + (int)($value >>> 32L ^ $value);
    }

    public String toString() {
        return "schemeVo(ton=" + getTon() + ", number=" + getNumber() + ", coalFieldId=" + Arrays.deepToString((Object[])getCoalFieldId()) + ", value=" + getValue() + ")";
    }

    public schemeVo(double ton, Integer number, Integer[] coalFieldId, double value) {
        this.ton = ton;
        this.number = number;
        this.coalFieldId = coalFieldId;
        this.value = value;
    }

    public schemeVo() {}

    public double getTon() {
        return this.ton;
    }

    public Integer getNumber() {
        return this.number;
    }

    public Integer[] getCoalFieldId() {
        return this.coalFieldId;
    }

    public double getValue() {
        return this.value;
    }
}
